package com.wcy.mapper;

import com.wcy.entity.Permission;
import com.wcy.entity.ResourceTag;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;


/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 吴传亿
 * @since 2025-04-27
 */
public interface ResourceTagMapper extends BaseMapper<ResourceTag> {
    @Select("select * from resource_tag t,resource_tag_mapping rm where t.tag_id=rm.tag_id and rm.resource_id=#{resourceId}")
    List<ResourceTag> selectTagsByResourceId(Integer resourceId);
}
